package sysCode

var _group = make(map[int]string)

type group map[int]string

var Code SysCode = SysCode{-100, -110, -1, -400, 100}

type SysCode struct {
	LOGIN_NOT     int //未登录
	LOGIN_INVALID int //登陆失效
	ERROR         int //失败
	ROUTER_NOT    int //路由不存在
	SUCCESS       int //成功
}

func GetError(code int) (err string) {
	_group[-400] = "路由不存在"
	_group[-100] = "未登录"
	_group[-110] = "登陆失效"
	_group[-1] = "失败"
	_group[200] = "成功"
	return _group[code]
}
